package com.squirrel.common.service;

import com.squirrel.common.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.squirrel.common.param.comment.CommentParam;
import com.squirrel.common.param.video.PageParam;
import com.squirrel.common.response.page.PageResult;
import com.squirrel.common.vo.comment.CommentVO;
import com.squirrel.common.vo.comment.CommentWithParentVO;

/**
 * <p>
 * CommentService 评论服务类
 * </p>
 *
 * @author 关远键
 * @since 2021/11/11 16:06
 */
public interface CommentService extends IService<Comment> {

    PageResult<CommentVO> getCommentByVideoId(Integer videoId, PageParam pageParam);

    PageResult<CommentVO> getCommentByUserId(Integer userId, PageParam pageParam);

    Integer sendComment(CommentParam commentParam);

}
